import rxAjax from '@/assets/ajax.js';
export const shareApi = {};

shareApi.queryForJson = function (key,params){
    let paramJson={params:JSON.stringify(params)};
    let url= "/api-form/form/core/formCustomQuery/queryForJson_"+key;
    return rxAjax.postJson(url,paramJson).then (res => {
        return res;
    })
}
shareApi.formBoListInterface = function(apiKey,params){
    let url = "/api-system/system/core/sysInterfaceApi/executeApi?apiKey="+apiKey;
    return rxAjax.postJson(url,params).then (res => {
        return res.data;
    })
}
shareApi.getCustomColumnByAlias =function(alias) {
    let url=  '/api-portal/portal/core/customPageColumn/getByAlias?alias=' + alias;
    return rxAjax.get(url).then (res => {
        return res
    });
}
export default shareApi
